package com.artisan.provider.upload;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

@RestController
public class FileUploadController {

    @RequestMapping(value = "/singleFile/upload")
    @ResponseBody
    public String singleFileUpload(MultipartFile file){

        System.out.println(file);

        return "https://img2.baidu.com/it/u=1531504437,2037863828&fm=224&fmt=auto&gp=0.jpg";
    }

}
